<template>
    <div style="background-color: aquamarine;">
        <h1>{{ msg }}</h1>
    </div>
</template>

<script>
export default{
    setup() {
        //Promise对象中存放需要异步执行的代码
        return new Promise((resolve)=>{
            setTimeout(()=>{
                resolve({
                    msg:"hello,久等了"
                })
            },3000);
        })
    }
}
</script>